#pragma once

#include <QWidget>
#include<QTimer>
class MsgTipsLabel : public QWidget
{
	Q_OBJECT

public:
	MsgTipsLabel(QString content,QWidget *parent=nullptr);
	~MsgTipsLabel();
	void startCloseCountDown(uint seconds);
protected:
	virtual void paintEvent(QPaintEvent* paintEvent) override; 
	virtual void mousePressEvent(QMouseEvent* event);
	//virtual void mouseMoveEvent(QMouseEvent* event);
public:
	QTimer paintTimer;
	QString tips;
	QRect rect;
	uint alpha;
};
